<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
<ul class="nav nav-tabs">
    <li><a href="<?php  echo $this->createWebUrl('addbumen');?>">添加部门</a></li>
    <li class="active"><a href="<?php  echo $this->createWebUrl('bumen');?>">部门管理</a></li>
</ul>
<div class="panel panel-default">
 
    <div class="panel-body">
        <table st-table="items" class="table table-striped table-condensed" style="display:auto;">
            <thead>
            <tr>
			
                <th>ID</th>
				<th>名称</th>
				<th>操作</th>

			
            </tr>
            </thead>
            <tbody>
            <?php  if(is_array($list)) { foreach($list as $list) { ?>
            <tr>
				<td><?php  echo $list['id'];?></td>
				<td ><?php  echo $list['name'];?></td>
                <td>
                    <a class="btn btn-default btn-sm" onclick="return confirm('确认删除吗？');return false;" href="<?php  echo $this->createWebUrl('addbumen', array('id' => $list['id'], 'op' => 'delete'))?>" title="删除"><i class="fa fa-times"></i></a>
                </td>
            </tr>
            <?php  } } ?>
            </tbody>
        </table>
        <?php  echo $pager?>
    </div>
    
</div>
<?php (!empty($this) && $this instanceof WeModuleSite || 1) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>